
/**发送邮件定时任务举例*/

let sendMail = require("../services/mailer")
const schedule = require('node-schedule');
module.exports = sendEmailJobs = async function () {
    //每天的凌晨0点0分0秒触发
    schedule.scheduleJob('0 0 0 * * *', () => {
        sendMail();
    });
};